[gd_scene load_steps=12 format=2]

[ext_resource path="res://Assets/theme.tres" type="Theme" id=1]
[ext_resource path="res://UIScenes/DeckUIv2.gd" type="Script" id=2]
[ext_resource path="res://UIScenes/AA_Icon.tres" type="Texture" id=3]
[ext_resource path="res://UIScenes/Infantry_Icon.tres" type="Texture" id=4]
[ext_resource path="res://UIScenes/Artillery_Icon.tres" type="Texture" id=5]
[ext_resource path="res://UIScenes/Armored_Icon.tres" type="Texture" id=6]
[ext_resource path="res://UIScenes/GoBackTextureButton.tscn" type="PackedScene" id=7]
[ext_resource path="res://Assets/Stacked pixel.ttf" type="DynamicFontData" id=8]
[ext_resource path="res://UIScenes/UnitInfoParameter.tscn" type="PackedScene" id=10]

[sub_resource type="DynamicFont" id=2]
size = 18
font_data = ExtResource( 8 )

[sub_resource type="ButtonGroup" id=1]

[node name="DeckUI" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = ExtResource( 2 )

[node name="HSplitContainer" type="HSplitContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
split_offset = 195

[node name="Panel" type="Panel" parent="HSplitContainer"]
margin_right = 195.0
margin_bottom = 720.0

[node name="ScrollContainer" type="ScrollContainer" parent="HSplitContainer/Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 4.0
margin_right = -4.0
margin_bottom = -4.0
follow_focus = true

[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer/Panel/ScrollContainer"]
margin_right = 187.0
margin_bottom = 712.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="TitleLabel" type="Label" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_right = 187.0
margin_bottom = 61.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 2.94
text = "CHOOSE DECK"
align = 1
valign = 1

[node name="UserNameLabel" type="Label" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_top = 65.0
margin_right = 187.0
margin_bottom = 126.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 2.94
custom_fonts/font = SubResource( 2 )
align = 1
valign = 1

[node name="AATextureRect" type="TextureRect" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
modulate = Color( 0.141176, 0.537255, 1, 1 )
margin_top = 130.0
margin_right = 187.0
margin_bottom = 151.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource( 3 )
expand = true
stretch_mode = 6

[node name="AAHBox" type="VBoxContainer" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_top = 155.0
margin_right = 187.0
margin_bottom = 266.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 5.31

[node name="ArtilleryTextureRect" type="TextureRect" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
modulate = Color( 1, 0.933333, 0.545098, 1 )
margin_top = 270.0
margin_right = 187.0
margin_bottom = 291.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource( 5 )
expand = true
stretch_mode = 6

[node name="ArtilleryHBox" type="VBoxContainer" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_top = 295.0
margin_right = 187.0
margin_bottom = 406.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 5.31

[node name="InfantryTextureRect" type="TextureRect" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
modulate = Color( 0.392157, 1, 0.54902, 1 )
margin_top = 410.0
margin_right = 187.0
margin_bottom = 431.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource( 4 )
expand = true
stretch_mode = 6

[node name="InfantryHBox" type="VBoxContainer" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_top = 435.0
margin_right = 187.0
margin_bottom = 546.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 5.31

[node name="ArmoredTextureRect" type="TextureRect" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
modulate = Color( 1, 0.552941, 0.254902, 1 )
margin_top = 550.0
margin_right = 187.0
margin_bottom = 571.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource( 6 )
expand = true
stretch_mode = 6

[node name="ArmoredHBox" type="VBoxContainer" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_top = 575.0
margin_right = 187.0
margin_bottom = 686.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 5.31

[node name="HBoxContainer" type="HBoxContainer" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer"]
margin_top = 690.0
margin_right = 187.0
margin_bottom = 712.0

[node name="GoBackTextureButton" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer/HBoxContainer" instance=ExtResource( 7 )]
margin_right = 131.0
margin_bottom = 22.0
group = SubResource( 1 )
stretch_mode = 4

[node name="DoneButton" type="Button" parent="HSplitContainer/Panel/ScrollContainer/VBoxContainer/HBoxContainer"]
margin_left = 135.0
margin_right = 187.0
margin_bottom = 22.0
text = "Done"

[node name="VSplitContainer" type="VSplitContainer" parent="HSplitContainer"]
margin_left = 207.0
margin_right = 1280.0
margin_bottom = 720.0
split_offset = -238

[node name="Panel" type="Panel" parent="HSplitContainer/VSplitContainer"]
margin_right = 1073.0
margin_bottom = 116.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="TextureRect" type="TextureRect" parent="HSplitContainer/VSplitContainer/Panel"]
unique_name_in_owner = true
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 24.0
margin_top = 24.0
margin_right = -24.0
margin_bottom = -24.0
expand = true
stretch_mode = 6

[node name="Panel2" type="Panel" parent="HSplitContainer/VSplitContainer"]
margin_top = 128.0
margin_right = 1073.0
margin_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer/VSplitContainer/Panel2"]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="UnitInfoParameter" parent="HSplitContainer/VSplitContainer/Panel2/VBoxContainer" instance=ExtResource( 10 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1073.0
margin_bottom = 194.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Attack"

[node name="UnitInfoParameter2" parent="HSplitContainer/VSplitContainer/Panel2/VBoxContainer" instance=ExtResource( 10 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 198.0
margin_right = 1073.0
margin_bottom = 393.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Defense"

[node name="UnitInfoParameter3" parent="HSplitContainer/VSplitContainer/Panel2/VBoxContainer" instance=ExtResource( 10 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 397.0
margin_right = 1073.0
margin_bottom = 592.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Speed"

[node name="AddToDeckCheckButton" type="CheckButton" parent="HSplitContainer/VSplitContainer/Panel2"]
unique_name_in_owner = true
anchor_left = 1.0
anchor_right = 1.0
margin_left = -197.0
margin_bottom = 32.0
text = "deck"

[connection signal="pressed" from="HSplitContainer/Panel/ScrollContainer/VBoxContainer/HBoxContainer/DoneButton" to="." method="_on_DoneButton_pressed"]
[connection signal="toggled" from="HSplitContainer/VSplitContainer/Panel2/AddToDeckCheckButton" to="." method="_on_AddToDeckCheckButton_toggled"]
